<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>电影列表页</title>

    <!-- Bootstrap -->
    <link href="//cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>
<div id="my_index" class="container">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <h3>
                电影列表页
            </h3>
        </div>
    </div>
    <div class="row clearfix">
        <div class="col-md-12 column">
            <table class="table table-hover">
                <thead>
                <tr>
                    <th style="display:none">
                        ID
                    </th>
                    <th>
                        编号
                    </th>
                    <th>
                        电影名字
                    </th>
                    <th>
                        国家
                    </th>
                    <th>
                        上映时间
                    </th>
                    <th>
                        录入时间
                    </th>
                    <th>
                        查看
                    </th>
                    <th>
                        更新
                    </th>
                    <th>
                        删除
                    </th>
                </tr>
                </thead>
                <tbody>
                    <tr v-for="(movie,index) in movieList">
                        <td style="display:none">
                            {{movie._id}}
                        </td>
                        <td>
                            {{index+1}}
                        </td>
                        <td>
                            {{movie.title}}
                        </td>
                        <td>
                            {{movie.country}}
                        </td>
                        <td>
                            {{movie.year}}
                        </td>
                        <td>
                            {{moment(movie.mate.updateAt).format('MM月DD日YYYY年')}}
                        </td>
                        <td>
                            <a target='_blank' v-bind:href="/movie/+movie._id"> 查看</a>
                        </td>
                        <td>
                            <a target='_blank' v-bind:href="/update/+movie._id">修改</a>
                        </td>
                        <td>
                            <button class="btn btn-danger btn-xs del" onclick="filmdel()">删除</button>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>

<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="//cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="//lib.baomitu.com/moment.js/2.18.1/moment.min.js"></script>
<!--vue.js-->
<script src="//cdn.bootcss.com/vue/2.2.2/vue.min.js"></script>
<script src="/js/moviejs/indexVue.js"></script>
<script src="/js/moviejs/filmDelete.js"></script>
</body>

</html>
